<?php
$this->pageTitle   = Yii::app()->name . ' - '.Yii::t('default', 'Admin Information');
$this->breadcrumbs = array(
  Yii::t('default', 'Admin Information')
);
?>

<h3>
<?php echo Yii::t('default', 'Admin Information') ?>
</h3>

<?php $form=$this->beginWidget('CActiveForm', array(
  'id'=>'admin-info-form',
  'enableAjaxValidation'=>false,
)); ?>

<p class="note">
<?php echo Yii::t('default', 'field_with', array('{star}'=>'<span class="required">*</span>'))?>
</p>
<?php if (Yii::app()->user->hasFlash('success')) { ?>
  <div class="alert alert-success">
    <?php echo Yii::app()->user->getFlash('success')?>
  </div>
<?php } ?>
<?php echo $form->errorSummary($model, '', '', array('class' => 'alert alert-error')); ?>

<div class="column one-column">
<?php echo $form->labelEx($model,'username', array('class' => 'clearfix')); ?>
<p><?php echo $model->username?></p>
</div>

<div class="column one-column">
<?php echo $form->labelEx($model,'fullname'); ?>
<?php echo $form->textField($model, 'fullname')?>
</div>

<div class="column one-column">
<?php echo $form->labelEx($model,'yahoo'); ?>
<?php echo $form->textField($model, 'yahoo')?>
<p class="note"><?php echo Yii::t('default', 'Example: Your yahoo chat is ngocdung93a@yahoo.com.vn, please input "ngocdung93a".')?></p>
</div>

<div class="column one-column">
<?php echo $form->labelEx($model,'email'); ?>
<?php echo $form->textField($model, 'email')?>
</div>

<div class="column one-column">
<?php echo $form->labelEx($model,'phone'); ?>
<?php echo $form->textField($model, 'phone')?>
</div>

<div class="column one-column">
<?php echo $form->labelEx($model,'cell_phone'); ?>
<?php echo $form->textField($model, 'cell_phone')?>
</div>

<div class="column one-column">
<?php echo $form->labelEx($model,'old_password'); ?>
<?php echo $form->passwordField($model, 'old_password', array('autocomplete' => 'off'))?>
<p class="note"><?php echo Yii::t('default', 'Leave blank the password fields if do not change password.')?></p>
</div>

<div class="column one-column">
<?php echo $form->labelEx($model,'new_password'); ?>
<?php echo $form->passwordField($model, 'new_password')?>
</div>

<div class="column one-column">
<?php echo $form->labelEx($model,'re_password'); ?>
<?php echo $form->passwordField($model, 're_password')?>
</div>

<div class="column one-column">
<?php echo $form->labelEx($model,'modifieddate', array('class' => 'clearfix')); ?>
<p><?php echo date('d-m-Y G:i', $model->modifieddate)?></p>
</div>

<div class="clear">
<?php echo CHtml::submitButton(Yii::t('default', 'Update')); ?>
</div>

<?php $this->endWidget(); ?>